package part08_外观模式_家庭影院;

/**
 * @ClassName: Client
 * @Author: AllenSun
 * @Date: 2020/3/2 22:07
 */
public class Client {
    public static void main(String[] args) {
        //现在如果直接调用各个设备，就会很麻烦，那就调用一个外观类
        //在外观类里直接把所有操作做好，Client直接调用即可完成时所有的操作
        HomeTheaterFacade homeTheaterFacade=new HomeTheaterFacade();
        homeTheaterFacade.ready();
        homeTheaterFacade.play();
        homeTheaterFacade.pause();
        homeTheaterFacade.redisplay();
        homeTheaterFacade.end();

    }
}
